﻿@model DTcms.Model.actionmodel
<form id="form1" class="layui-form" url="actionSave?action=@ViewBag.action&id=@ViewBag.id">
    @Html.AntiForgeryToken()
    <!--导航栏-->
    <div class="pageheader">
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <li><a href="../settings/action_list" class="back"><i class="fa fa-mail-reply-all"></i> 返回列表页</a></li>
                <li><a href="javascript:;"><i class="iconfont icon-home1"></i> 首页</a> </li>
                <li><a href="../channel/site_list">操作列表</a> </li>
                <li><a href="javascript:;">编辑权限操作</a> </li>
            </ul>
        </div>
    </div>
    <!--/导航栏-->
    <!--内容-->
    <div class="layui-fluid">
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title" id="floatHead">
                <li class="layui-this">基本信息</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label">操作编码</label>
                        <div class="layui-input-block">@Html.TextBox("action_code", Model.action_code, new { @class = "input normal", datatype = "*1-20", sucmsg = " " })<span class="Validform_checktip"></span></div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">操作名称</label>
                        <div class="layui-input-block">@Html.TextBox("action_name", Model.action_name, new { @class = "input normal", datatype = "*1-40", sucmsg = " " })<span class="Validform_checktip"></span></div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">显示位置</label>
                        <div class="layui-input-block">
                            @Html.RadioButton("position", 1, Model.position == 1, new { title = "表单内", id = "position_1" })
                            @Html.RadioButton("position", 2, Model.position == 2, new { title = "表单左上", id = "position_2" })
                            <span class="Validform_checktip"></span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">图标</label>
                        <div class="layui-input-block">@Html.TextBox("icon", Model.icon, new { @class = "input normal" })<span class="Validform_checktip"></span></div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">方法名称</label>
                        <div class="layui-input-block">@Html.TextBox("method", Model.method, new { @class = "input normal" })<span class="Validform_checktip"></span></div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">@Html.TextBox("remark", Model.remark, new { @class = "input normal" })<span class="Validform_checktip"></span></div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">样式名称</label>
                        <div class="layui-input-block">@Html.TextBox("class_name", Model.class_name, new { @class = "input normal" })<span class="Validform_checktip"></span></div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">是否显示</label>
                        <div class="layui-input-block">
                            @Html.CheckBox("is_lock", Model.is_lock == 0, new { title = "是" })
                            <span class="Validform_checktip">*隐藏后不显示在界面导航菜单中。</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">排序数字</label>
                        <div class="layui-input-block">
                            @Html.TextBox("sort_id", Model.sort_id, new { @class = "input small", datatype = "n", sucmsg = " " })
                            <span class="Validform_checktip">*数字，越小越向前</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--/内容-->
    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-wrap">
            <button class="layui-btn icon-btn" id="btnSubmit"><i class="layui-icon layui-icon-ok"></i>提交保存</button>
            <button class="layui-btn layui-btn-warm icon-btn" name="btnReturn" onclick="javascript:history.back(-1);"><i class="layui-icon layui-icon-return"></i>返回上一页</button>
        </div>
    </div>
    <!--/工具栏-->
</form>
@section Scripts{
    <script type="text/javascript">
        layui.use(['validform', 'element', 'jqueryform'], function () {
            //初始化表单验证
            $("#form1").initValidform('#btnSubmit', 1);
        });
    </script>
}